# -*- coding: utf-8 -*-

import json
import datetime
from django.shortcuts import render, redirect, HttpResponse
from web import models


# create your views here.
def index(request):
    return render(request, 'index.html')


def price(request):
    """ 套餐 """
    # 获取套餐
    policy_list = models.PricePolicy.objects.filter(category=2)
    return render(request, 'price.html', {'policy_list': policy_list})


def pay(request):
    pass